'''
Author: xialang333@gmail.com
Date: 2024-07-26 14:28:44
LastEditTime: 2024-08-02 14:36:05
'''
from rest_framework import routers
from django.urls import re_path, path

from apps.software.views.files import FileViewSet
from apps.software.views.appdeploy import ApplicationViewSet, ApplicationDepLogsViewSet


system_url = routers.SimpleRouter()
system_url.register(r'file', FileViewSet)
system_url.register(r'app_deploy', ApplicationViewSet)
system_url.register(r'app_deploy_log', ApplicationDepLogsViewSet)

urlpatterns = [
    path('deploy_app_exec/',ApplicationDepLogsViewSet.as_view({'post':'deploy_app_exec'})),
]
urlpatterns += system_url.urls